package br.com.ac.fatureweb.integration.model;

import java.io.Serializable;

public class EconomiaVO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5356451367364820714L;

	private Long id;

	private Long inscricao;

	private Long codTarifa;

	private Integer qtdEconomias;

	public EconomiaVO() {
		super();
	}

	public EconomiaVO(Long id, Long inscricao, Long codTarifa,
			Integer qtdEconomias) {
		super();
		this.id = id;
		this.inscricao = inscricao;
		this.codTarifa = codTarifa;
		this.qtdEconomias = qtdEconomias;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof EconomiaVO)) {
			return false;
		}
		EconomiaVO other = (EconomiaVO) obj;
		if (id == null) {
			if (other.id != null) {
				return false;
			}
		} else if (!id.equals(other.id)) {
			return false;
		}
		return true;
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the inscricao
	 */
	public Long getInscricao() {
		return inscricao;
	}

	/**
	 * @param inscricao
	 *            the inscricao to set
	 */
	public void setInscricao(Long inscricao) {
		this.inscricao = inscricao;
	}

	/**
	 * @return the codTarifa
	 */
	public Long getCodTarifa() {
		return codTarifa;
	}

	/**
	 * @param codTarifa
	 *            the codTarifa to set
	 */
	public void setCodTarifa(Long codTarifa) {
		this.codTarifa = codTarifa;
	}

	/**
	 * @return the qtdEconomias
	 */
	public Integer getQtdEconomias() {
		return qtdEconomias;
	}

	/**
	 * @param qtdEconomias
	 *            the qtdEconomias to set
	 */
	public void setQtdEconomias(Integer qtdEconomias) {
		this.qtdEconomias = qtdEconomias;
	}

}
